#include <MIDI.h>

struct MySettings : public midi::DefaultSettings
{
  static const bool UseRunningStatus = false; // Messes with my old equipment!
  
  // activate to simplify tests with hairless midi....
  // static const long BaudRate = 115200;
};
MIDI_CREATE_CUSTOM_INSTANCE(HardwareSerial, Serial, Midi, MySettings);

#include "Common.h"
#include "ShellButtons.h"

void InterruptHandler1() {
  detachInterrupt(INTERRUP_NR);  
  ShellButtons::InterruptCounter++;
}


void ShellButtons::InitMidi() {
  Midi.begin();
}

void ShellButtons::SendNoteOn( byte pitch, byte volume, byte channel ) 
{
  Midi.sendNoteOn( pitch, volume, 1);  
}

void ShellButtons::SendNoteOff( byte pitch,byte volume,byte channel ) 
{
  Midi.sendNoteOff( pitch, volume, 1);
}

